import 'package:flutter/material.dart';

class ContainerCase2 extends StatelessWidget {
const ContainerCase2({ Key? key }) : super(key: key);

  @override
  Widget build(BuildContext context){
    return Container(
      width: double.infinity, // 宽度为屏幕宽度
      height: double.infinity, // 高度为屏幕高度
      color: Color.fromARGB(255, 149, 198, 144),
      alignment: Alignment.center,   // 想要子元素不撑满需要给对齐方式
      child: Container(
        width: 200,
        height: 200,
        color: Color.fromARGB(255, 155, 198, 231),
      ),
    );
  }
}